﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="{$site_url}/">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="{$page_keywords}" />
<meta name="Description" content="{$page_description}" />
<title>{$page_title}</title>

<!--{css(mem.css)}-->
<!--{css(global.css)}-->

</head>
<body>

<!--{inc (head_index.view.html)}--> 



    <div class="crumb">

        <a class="hp" href="{$site_url}/">首页</a>&gt;&nbsp;排队消费
    </div>
    <div class="wrap pointad">
		<div class="col_mem_b">
			<div class="memnote1 mb20">
				<div class="con">
 					<p>排队数是 <em  style="color:red; font-weight:600;"> {QUEUENUM}</em> 人</span><a href="?app=user&act=addmoney"><span style="color:red;">&lt;点我为账户充值&gt;</span></a> </p>              
                    
				</div>
			</div>
   
				<table class="infobox order">
				<caption >
                <span style="float:left;">
					排队消费
                </span>
                <span style="float:right; padding-right:20px;"> 
		<div id="hdSr" class="fr" >
			<form action="?app=queue&act=queuelist&id={$qid}" method="post">
				<fieldset>
					<legend>搜索</legend>
					<input  name="id"  value="{$qid}" type="hidden"/>
					<input type="text" name="word" value="{$word}" class="hd-text lower" onClick="this.value='';" style="background-color:#FFFFFF" >
					<input type="submit" value="搜索用户名" class="hd-sbt quiet" style="width:80px;">
				</fieldset>
			</form>
		</div>
				   
                </span>                
                
				</caption>

				<tbody>
					<tr>
					     <th>ID号</th>
                         <th>用户名</th>
                         <th>面值</th>
                         <th>时间/订单号(或排队号)</th>
                         <th>是否返利</th>
					</tr>
<!--{if (empty($lw_data))}-->
<tr><td colspan="4">您暂时还没有信息哦！</td></tr>
<!--{/if}-->					

<?php foreach((array)$lw_data as $_key => $_value ) { ?>
							<tr>
							    <td  style="width:75px; text-align:left" >{$_value.id}</td>
								<td  style="width:75px; " ><span style="color:red;">{$_value.username}</span></td>
								<td  style="width:75px;">￥{$_value.queuemoney}元</td>
								<td  style="width:150px;" >
								{$_value.add_time|dateymdgis}&nbsp;/&nbsp;<br/>
								<?php if ( $username == $_value.username ) { ?>[<span style="color:red;">{$_value.orderid}</span>]<?php } ?>
								
								</td>
								 <td  style="width:75px;">
<?php if ( $_value.isqueue ) { ?>
	     <?php if ( $_value.ispay ) { ?>
	      已经返利
	     <?php } else { ?>
		 <span style="color:red;">等待返利</span>
		 <?php } ?>
	<?php } else { ?>
	<span style="color: #999999">排队中</span>
	<?php } ?>
								 </td>   
            				</tr>
<?php } ?>					
                        
				</tbody>
			</table>
			<div class="page">

{$lw_page.total}条记录 
共{$lw_page.curr.num}/{$lw_page.totalpage}页
<a href="{$lw_page.head}">首页</a>
<a href="{$lw_page.up}">&lt;&lt;</a>
<a href="{$lw_page.up}">上一页</a>
 <a href="{$lw_page.curr.url}" class="currentPage">{$lw_page.curr.num}</a> 
 <a href="{$lw_page.down}">下一页</a>
<a href="{$lw_page.down}">&gt;&gt;</a>
<a href="{$lw_page.foot}">末页</a>
   &nbsp;&nbsp;转到:<form action="?app=queue&act=queuelist" method="get" >
			<input  name="app"  value="queue" type="hidden"/> 
            <input  name="act"  value="queuelist" type="hidden"/>

            <input  name="id"  value="{$qid}" type="hidden"/>
            <input  name="word"  value="{$word}" type="hidden"/>		
            			<input type="text" class="page-goto" name="page"  style="width: 20px;" /> 
			<input type="submit" class="goto-btn" value="GO" />
			</form>   
            </div>
		</div>
        
              
        
        <div class="col_mem_a">
            

<!--{inc (user/user_menu.view.html)}--> 



        </div>
    </div>


    
<!--{inc (footer_index.view.html)}-->


</body>
</html>